home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXT Education Software Sampler 1992 Fall
/
NeXT Education Software Sampler 1992 Fall.iso
/
SoundAndMusic
/
cmix
/
lib
/
combset.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-02-25
|
298 b
|
17 lines
#include <math.h>
#include "../H/ugens.h"
#include "../H/combs.h"
combset(loopt,rvt,init,a)
float loopt,*a,rvt;
{
int j;
a[0] = ((float)START + (loopt * SR + .5));
a[1] = (float)pow(.001,(double)(loopt/rvt));
if(!init) {
for(j=START; j<(int)*a; j++) a[j] = 0;
a[STARTM1] = START;
}
}